import _fatch from '@/api/request'

function getSubject (data) {
  return _fatch({
    url: '/subject/list',
    params: data
  })
}
function setSubjectStatus (data) {
  return _fatch({
    url: '/subject/status',
    method: 'post',
    data  
  })
}
function addSubject (data) {
  return _fatch({
    url: '/subject/add',
    method: 'post',
    data
  })
}
function editSubject (data) {
  return _fatch({
    url: '/subject/edit',
    method: 'post',
    data
  })
}
function removeSubject (data) {
  return _fatch({
    url: '/subject/remove',
    method: 'post',
    data
  })
}
export { getSubject, setSubjectStatus, addSubject, editSubject, removeSubject}
